package SwingModel;

import java.util.Date;

public class CmsMessage {

	private int messageID;
	private int conversationID;
	private String messageTitle;
	private String messageContent;
	private Date receivedDTM;
	private boolean isRead;
	private boolean isSender;
	private boolean isRecipient;
	private String sender;

	/**
	 * This constructor instantiate a message.
	 * 
	 * @param messageID
	 * @param conversationID
	 * @param messageTitle
	 * @param messageContent
	 * @param createdDTM
	 * @param isRead
	 * @param isSender
	 * @param isRecipient
	 * @param sender
	 */
	public CmsMessage(int messageID, int conversationID, String messageTitle, String messageContent, 
							Date receivedDTM, boolean isRead, boolean isSender, boolean isRecipient, String sender){
		this.messageID = messageID;
		this.conversationID = conversationID;
		this.messageTitle = messageTitle;
		this.messageContent = messageContent;
		this.receivedDTM = receivedDTM;
		this.isRead = isRead;
		this.isSender = isSender;
		this.isRecipient = isRecipient;
		this.sender = sender;
	}

	//---------------------------------------------------------
	//GETTERS AND SETTERS:
	//---------------------------------------------------------	
	public int getMessageID() {
		return messageID;
	}


	public void setMessageID(int messageID) {
		this.messageID = messageID;
	}


	public String getMessageTitle() {
		return messageTitle;
	}


	public void setMessageTitle(String messageTitle) {
		this.messageTitle = messageTitle;
	}


	public String getMessageContent() {
		return messageContent;
	}


	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}


	public Date getReceivedDTM() {
		return receivedDTM;
	}


	public void setReceivedDTM(Date createdDTM) {
		this.receivedDTM = createdDTM;
	}


	public int getConversationID() {
		return conversationID;
	}

	public void setConversationID(int conversationID) {
		this.conversationID = conversationID;
	}

	public boolean getIsSender() {
		return isSender;
	}

	public void setIsSender(boolean isSender) {
		this.isSender = isSender;
	}
	
	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public boolean getIsRecipient() {
		return isRecipient;
	}

	public void setIsRecipient(boolean isRecipient) {
		this.isRecipient = isRecipient;
	}

	public boolean getIsRead() {
		return isRead;
	}


	public void setIsRead(boolean isRead) {
		this.isRead = isRead;
	}
}